/*
 * @Author: xiaosihan
 * @Date: 2024-01-07 00:05:30
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-03-16 13:18:47
 */

// 每个部位规定的命名方式
const componentNames = [
  {
    style: 'T恤',
    component: [
      { key: 'front', name: '前片' },
      { key: 'back', name: '后片' },
      { key: 'omia1', name: '肩片1' },
      { key: 'omia2', name: '肩片2' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'collar_strip', name: '领条' },
      { key: 'pressure_collar', name: '圧领条' },
      { key: 'breast_pocket', name: '胸袋' },
      { key: 'right_top_sleeve', name: '右袖上接' },
      { key: 'left_top_sleeve', name: '左袖上接' },
      { key: 'right_bottom_sleeve', name: '右袖下接' },
      { key: 'left_bottom_sleeve', name: '左袖下接' },
    ],
  },
  {
    style: 'Polo衫',
    component: [
      { key: 'front', name: '前片' },
      { key: 'back', name: '后片' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'left_sleeve_cuff', name: '左袖口' },
      { key: 'right_sleeve_cuff', name: '右袖口' },
      { key: 'top_collar_1', name: '领面1' },
      { key: 'top_collar_2', name: '领面2' },
      { key: 'bottom_collar_1', name: '领座1' },
      { key: 'bottom_collar_2', name: '领座2' },
      { key: 'inner_placket', name: '里襟' },
      { key: 'placket', name: '门襟' },
      { key: 'breast_pocket', name: '胸袋' },
    ],
  },
  {
    style: '背心',
    component: [
      { key: 'front', name: '前片' },
      { key: 'back', name: '后片' },
      { key: 'edging_strip', name: '包边条' },
    ],
  },
  {
    style: '卫衣',
    component: [
      { key: 'front', name: '前片' },
      { key: 'back', name: '后片' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'pocket', name: '袋子' },
      { key: 'left_pocket', name: '左袋' },
      { key: 'right_pocket', name: '右袋' },
      { key: 'left_hat', name: '左帽片' },
      { key: 'right_hat', name: '右帽片' },
      { key: 'left_hat_inside', name: '左帽里' },
      { key: 'right_hat_inside', name: '右帽里' },
      { key: 'hat_center', name: '帽中' },
      { key: 'collar', name: '领' },
      { key: 'left_sleeve_cuff', name: '左袖口' },
      { key: 'right_sleeve_cuff', name: '右袖口' },
      { key: 'hem', name: '下摆' },
    ],
  },
  {
    style: '棒球衫',
    component: [
      { key: 'front', name: '前片' },
      { key: 'back', name: '后片' },
      { key: 'left_placket', name: '左门襟' },
      { key: 'right_placket', name: '右门襟' },
      { key: 'back_collar_patch', name: '后领贴' },
      { key: 'left_front', name: '左前片' },
      { key: 'right_front', name: '右前片' },
      { key: 'back_top', name: '后上' },
      { key: 'back_bottom', name: '后下' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'sleeve_cuff', name: '袖口' },
      { key: 'bottom_foot', name: '下脚' },
    ],
  },
  {
    style: '裙子',
    component: [
      { key: 'front_skirt', name: '前裙' },
      { key: 'back_skirt', name: '后裙' },
      { key: 'back_skirt_left', name: '后裙左' },
      { key: 'back_skirt_right', name: '后裙右' },
      { key: 'waist', name: '腰' },
      { key: 'front_waist', name: '前腰' },
      { key: 'back_waist', name: '后腰' },
      { key: 'back_left_waist', name: '后左腰' },
      { key: 'back_right_waist', name: '后右腰' },
    ],
  },
  {
    style: '衬衫',
    component: [
      { key: 'left_front', name: '左前片' },
      { key: 'right_front', name: '右前片' },
      { key: 'back', name: '后片' },
      { key: 'compound_shoulder_1', name: '复肩1' },
      { key: 'compound_shoulder_2', name: '复肩2' },
      { key: 'back_bottom', name: '后下' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'left_sleeve_cuff', name: '左袖口' },
      { key: 'right_sleeve_cuff', name: '右袖口' },
      { key: 'top_collar', name: '上领' },
      { key: 'top_collar1', name: '上领1' },
      { key: 'bottom_collar', name: '座领' },
      { key: 'breast_pocket', name: '胸袋' },
    ],
  },
  {
    style: '骑行服',
    component: [
      { key: 'left_front', name: '左前片' },
      { key: 'right_front', name: '右前片' },
      { key: 'back', name: '后片' },
      { key: 'back_pocket', name: '后贴袋' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'collar', name: '领' },
    ],
  },
  {
    style: '趴趴服',
    component: [
      { key: 'left_front', name: '左前片' },
      { key: 'right_front', name: '右前片' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'front_crotch', name: '前裆片' },
      { key: 'back_crotch', name: '后裆片' },
    ],
  },
  {
    style: '沙滩裤',
    component: [
      { key: 'waist', name: '腰头' },
      { key: 'left', name: '左片' },
      { key: 'right', name: '右片' },
      { key: 'left_front', name: '左前片' },
      { key: 'right_front', name: '右前片' },
      { key: 'left_back', name: '左后片' },
      { key: 'right_back', name: '右后片' },
      { key: 'back_pocket', name: '后贴袋' },
      { key: 'side_pocket', name: '侧贴袋' },
      { key: 'side_pocket_fabric', name: '侧袋布' },
      { key: 'side_pocket_fabric1', name: '侧袋布1' },
      { key: 'side_pocket_fabric2', name: '侧袋布2' },
      { key: 'side_pocket_fabric3', name: '侧袋布3' },
      { key: 'side_pocket_fabric4', name: '侧袋布4' },
      { key: 'back_pocket_fabric', name: '后袋布' },
    ],
  },
  {
    style: '狗狗衣',
    component: [
      { key: 'front', name: '前片' },
      { key: 'back', name: '后片' },
      { key: 'left_sleeve', name: '左袖' },
      { key: 'right_sleeve', name: '右袖' },
      { key: 'collar_strip', name: '领条' },
      { key: 'pressure_collar', name: '圧领条' },
    ],
  },
  {
    style: '毛毯',
    component: [
      { key: 'blanket', name: '毯布' },
      { key: 'edging_strip', name: '包边条' },
    ],
  },
  {
    style: '头巾',
    component: [{ key: 'headscarf', name: '头巾布' }],
  },
  {
    style: '头套',
    component: [
      { key: 'left_headgear', name: '头套左' },
      { key: 'right_headgear', name: '头套右' },
    ],
  },
  {
    style: '眼罩',
    component: [
      { key: 'face_shield', name: '面障片' },
      { key: 'hanging_rope', name: '挂绳' },
    ],
  },
  {
    style: '口罩',
    component: [
      { key: 'face_barrier', name: '障面' },
      { key: 'hanging_rope', name: '挂绳' },
    ],
  },
  {
    style: '围裙',
    component: [
      { key: 'skirt_piece', name: '裙片' },
      { key: 'front_pocket', name: '前贴袋' },
      { key: 'waist_rope', name: '腰绳' },
    ],
  },
  {
    style: '骑行帽',
    component: [
      { key: 'hat_crown', name: '帽顶' },
      { key: 'hat_side', name: '帽侧' },
      { key: 'hat_brim', name: '帽沿' },
      { key: 'inside_hat_crown', name: '帽顶里' },
      { key: 'inside_hat_side', name: '帽侧里' },
      { key: 'inside_hat_brim', name: '帽沿里' },
    ],
  },
  {
    style: '裤子',
    component: [
      { key: 'left_front_tuo_connect', name: '左前上接片' },
      { key: 'left_front_bottom_connect', name: '左前下接片' },

      { key: 'right_front_top_connect', name: '右前上接片' },
      { key: 'right_front_bottom_connect', name: '右前下接片' },

      { key: 'left_back_top_connect', name: '左后上接片' },
      { key: 'right_back_bottom_connect', name: '左后下接片' },

      { key: 'right_back_top_connect', name: '右后上接片' },
      { key: 'right_back_bottom_connect', name: '右后下接片' },

      { key: 'left_leg_open', name: '左脚口' },
      { key: 'right_leg_open', name: '右脚口' },
      { key: 'back_pocket', name: '后贴袋' },
      { key: 'back_pocket1', name: '后贴袋1' },
      { key: 'back_pocket2', name: '后贴袋2' },
    ],
  },
];

export const componentKeyNames: Array<{ key: string; name: string }> = [];

for (let i = 0; i < componentNames.length; i++) {
  componentKeyNames.push(...componentNames[i].component);
}

export default componentNames;
